<body>
<input type="hidden" id="status" value="{$status}">
</body>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script>
    let status = $("#status").val();
    if(status == 'off')
    {
        parent.layer.alert('解绑失败,扫描微信与绑定微信不一致!',{icon:2},function()
        {
            parent.window.location.href='';
        });
    }
    else{
        parent.layer.msg('解绑成功',{icon:1,time:2000},function()
        {
            parent.parent.layer.closeAll();
            parent.parent.bind();
        })
    }
</script>